'use strict'

const koa = require('koa');
const router = require('koa-router')();
const bodyParser = require('koa-bodyparser');
const controllers = require('./controllers');

const app = new koa();

app.use(bodyParser());
app.use(controllers());
app.use(templateing());


app.use(router.routes());

let prot = 3000;
app.listen(prot);

console.log(`Server is running at http://127.0.0.1:${prot}`);